package com.demo.stock.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 批量扣库返回结果
 *
 * @author admin
 */
public class BatchReduceStockVo implements Serializable {
    private static final long serialVersionUID = -1L;

    /**
     * 成功扣除库存的优惠券列表
     */
    private List<StockVo> successStockVoList;
    /**
     * 扣除库存失败的优惠券列表
     */
    private List<StockVo> errorStockVoList;
    /**
     * 扣除库存成功还是失败
     */
    private boolean result;
    /**
     * 失败原因
     */
    private String message;

    public List<StockVo> getSuccessStockVoList() {
        return successStockVoList;
    }

    public void setSuccessStockVoList(List<StockVo> successStockVoList) {
        this.successStockVoList = successStockVoList;
    }

    public List<StockVo> getErrorStockVoList() {
        return errorStockVoList;
    }

    public void setErrorStockVoList(List<StockVo> errorStockVoList) {
        this.errorStockVoList = errorStockVoList;
    }

    public boolean getResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "BatchReduceStockVo{" +
                "successStockVoList=" + successStockVoList +
                ", errorStockVoList=" + errorStockVoList +
                ", result=" + result +
                ", message='" + message + '\'' +
                '}';
    }
}
